$(document).ready(function(){
	
	
	
	
	
	
	var time=new Date();
	var date=time.getDate();
	var month=time.getMonth()+1;
	$(".notice ul li p").each(function(){
		var d=$(this).text();
		var y=d.split("-")[0];
		var feb;
		if((y%4==0&&y%100!=0)||(y%400==0))
			feb=29;
		else feb=28;
		var m=d.split("-")[1];
		m=parseInt(m);
		mdist=month-m;
		var day=d.split("-")[2];
		day=parseInt(day);
		dist=date-day;
		switch(m){
			case 1:
			case 3:
			case 5:
			case 7:
			case 8:
			case 10:
			case 12:
				if(dist<0&&mdist==1){
					dist=31-date+day;
				}
				else if(dist<0&&mdist!=1) dist=7;
				break;
			case 2:
				if(dist<0&&mdist==1){
					dist=feb-date+day;
				}
				else if(dist<0&&mdist!=1) dist=7;
				break;
			case 4:
			case 6:
			case 9:
			case 11:
				if(dist<0&&mdist==1){
					dist=30-date+day;
				}
				else if(dist<0&&mdist!=1) dist=7;
				break;
		}
		if((mdist==0||month==(-11))&&dist<7){
			$(this).css({
				"color":"#a3142c",
				"font-weight":"bold"
			});
			$(this).siblings().css("font-weight","bold");
			
		}
		else{
			$(this).css({
				"color":"#70aadc",
				"font-weight":"normal"
			})
			$(this).siblings().css("font-weight","normal");
		}
	});
	
	
	
	$(".flexslider").flexslider({animation:"slide",directionNav:!0,pauseOnAction:!1});
});